package nc.bs.cmp.bill.actions;

import nc.bs.framework.common.InvocationInfoProxy;
import nc.cmp.bill.util.DataPower;
import nc.vo.cmp.bill.BillVO;
import nc.vo.cmp.settlement.SettlementBatchOperateVO;
import nc.vo.pub.AggregatedValueObject;
import nc.vo.pub.BusinessException;









public class PayBillBatchSaveBSAction
  extends BillSaveBatchBSAction
{
  protected int[] getValidatorCode() { return new int[] { 40, 41, 26, 45, 48, 51, 46, 53, 55, 56, 24, 37, 58 }; }



















  
  protected void saveSettlementStype(SettlementBatchOperateVO[] sboVOs) throws BusinessException {}


















  
  protected boolean isUserhasPermission(AggregatedValueObject... bills) throws BusinessException {
    BillVO head = (BillVO)bills[0].getParentVO();
    
    String userid = head.getCreator();
    if (userid == null || userid.equals(""))
    {
      userid = InvocationInfoProxy.getInstance().getUserId();
    }
    return true;
//    Boolean savePower = Boolean.valueOf(DataPower.isUserhasPermission("cmppaybill", head.getPrimaryKey(), "save", head.getPk_group(), userid));
//    return (savePower.booleanValue() && DataPower.isUserhasPermission("cmppaybill", head.getPrimaryKey(), "savebase", head.getPk_group(), userid));
  }
}